/**
 * @file Mode.cpp
 *
 * @date 15/12/2011
 * @author Tales 
 *
 */

#include "Mode.hpp"
#include "../common/Error.hpp"

namespace yep
{

Mode * Mode::currentMode = NULL;

Mode::~Mode()
{
}

Mode & Mode::getCurrentMode()
{
	//Necessário!!
	YEP_ASSERT(currentMode!=NULL);
	return *currentMode;
}

void Mode::setCurrentMode(Mode & newMode)
{
	currentMode = &newMode;
}
} /* namespace yep */
